/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Admin
 */
import java.math.*;
import java.io.*;
//import org.
public class text2xml {

    public static void main(String arg[]) {
        try {
            String text[] = new String[10];
            FileOutputStream fout = new FileOutputStream("TextToXML.xml");
            OutputStreamWriter out = new OutputStreamWriter(fout);
            InputStreamReader in = new InputStreamReader(System.in);
            BufferedReader bin = new BufferedReader(in);
            for (int i = 0; i < 10; i++) {
                text[i] = bin.readLine();
            }
            out.write("<?xml version=\"1.0\"?>\r\n");
            out.write("<Root>\r\n");
            for (int i = 0; i < 10; i++) {
                out.write("  <child" + i + ">" + i + ":" + text[i]
                        + "</child" + i + ">");
            }
            out.write("</Root>");
            out.close();
        } catch (IOException e) {
            System.err.println(e);
        }
    }
}
